package com.example.networklab.controller;

import com.example.networklab.common.ResultResponse;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin(origins = "*")
@RestController
@RequiredArgsConstructor
public class TestController {
    @GetMapping("/test")
    public ResultResponse test() {
        return ResultResponse.success("test");
    }
}
